home *** CD-ROM | disk | FTP | other *** search
Unknown | 1994-09-22 | 5.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| TTComp Archive (archive/ttcomp)
| fallback
| Supported |
100%
| file
| TTComp archive data, binary, 2K dictionary
| default (weak)
| |
99%
| file
| data
| default
| |
66%
| TrID
| TTComp archive compressed (bin-2K)
| default (weak)
| |
33%
| TrID
| Adobe PhotoShop Brush
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 25 00 00 00 00 00 00 | 00 25 61 32 36 46 00 00 |.%......|.%a26F..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0b 4e 65 77 44 6f | 63 75 6d 65 6e 74 00 00 |...NewDo|cument..|
|00000060| 06 00 00 00 00 00 a9 00 | 00 00 00 00 00 00 a9 00 |........|........|
|00000070| 00 00 14 03 c1 00 28 05 | 7e 00 ff 00 00 00 00 00 |......(.|~.......|
|00000080| 00 0f a8 00 00 00 00 4e | 1c 00 00 00 09 00 00 00 |.......N|........|
|00000090| 04 00 04 ff fc ff fa 00 | 04 00 04 ff fc ff fc 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 83 | 00 0b 40 10 6b 53 63 72 |........|..@.kScr|
|000000b0| 65 65 6e 41 50 49 2f 31 | 39 39 39 36 00 06 47 65 |eenAPI/1|9996..Ge|
|000000c0| 6e 65 76 61 00 00 4f 4f | 53 45 72 72 20 4e 65 77 |neva..OO|SErr New|
|000000d0| 44 6f 63 75 6d 65 6e 74 | 28 46 69 6c 65 52 65 63 |Document|(FileRec|
|000000e0| 48 6e 64 6c 20 2a 72 65 | 74 75 72 6e 48 6e 64 6c |Hndl *re|turnHndl|
|000000f0| 2c 20 4f 53 54 79 70 65 | 20 73 66 74 79 70 65 2c |, OSType| sftype,|
|00000100| 20 42 6f 6f 6c 65 61 6e | 20 69 6e 63 54 69 74 6c | Boolean| incTitl|
|00000110| 65 4e 75 6d 29 3b 00 00 | 00 06 00 00 00 00 00 7b |eNum);..|.......{|
|00000120| 00 00 00 00 00 00 00 7b | 00 00 00 00 03 c1 00 14 |.......{|........|
|00000130| 05 7e 00 ff 00 00 00 00 | 00 00 0f a8 00 00 00 00 |.~......|........|
|00000140| 4e 1d 00 00 00 09 00 00 | 00 04 00 04 ff fc ff fa |N.......|........|
|00000150| 00 04 00 04 ff fc ff fc | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 83 00 0b 40 14 6b 53 63 | 72 65 65 6e 4f 6e 65 4c |...@.kSc|reenOneL|
|00000170| 69 6e 65 2f 31 39 39 39 | 37 00 06 47 65 6e 65 76 |ine/1999|7..Genev|
|00000180| 61 00 00 1d 43 72 65 61 | 74 65 20 6e 65 77 20 41 |a...Crea|te new A|
|00000190| 70 70 73 54 6f 47 6f 20 | 64 6f 63 75 6d 65 6e 74 |ppsToGo |document|
|000001a0| 2e 00 00 00 06 00 00 00 | 00 00 44 00 00 00 00 00 |........|..D.....|
|000001b0| 00 00 44 00 00 00 00 02 | 6b 04 40 02 6c 01 00 00 |..D.....|k.@.l...|
|000001c0| 00 00 00 00 01 0f f1 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 0c 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 06 00 00 00 00 00 a4 00 |........|........|
|00000200| 00 00 00 00 00 00 a4 00 | 00 00 00 02 6b 02 28 03 |........|....k.(.|
|00000210| c1 00 ff 00 00 00 00 00 | 00 0f a8 00 00 00 00 4e |........|.......N|
|00000220| 16 00 00 00 09 00 00 00 | 04 00 04 ff fc ff fa 00 |........|........|
|00000230| 04 00 04 ff fc ff fc 00 | 00 00 00 00 00 00 00 83 |........|........|
|00000240| 00 0b 40 0b 6c 69 6e 6b | 73 2f 31 39 39 39 30 00 |..@.link|s/19990.|
|00000250| 06 4d 6f 6e 61 63 6f 00 | 00 39 61 32 34 45 2c 49 |.Monaco.|.9a24E,I|
|00000260| 6e 69 74 44 6f 63 75 6d | 65 6e 74 0d 61 32 34 46 |nitDocum|ent.a24F|
|00000270| 2c 49 6e 69 74 44 6f 63 | 75 6d 65 6e 74 53 69 7a |,InitDoc|umentSiz|
|00000280| 65 0d 61 32 36 46 2c 4e | 65 77 44 6f 63 75 6d 65 |e.a26F,N|ewDocume|
|00000290| 6e 74 0d 00 16 00 01 00 | 00 00 00 00 10 00 0c 00 |nt......|........|
|000002a0| 01 00 00 00 00 00 00 00 | 00 00 00 00 06 00 00 00 |........|........|
|000002b0| 00 11 b3 00 00 00 00 00 | 00 11 b3 00 00 00 00 00 |........|........|
|000002c0| 00 75 30 02 6b 01 ff 00 | 00 00 00 00 00 0f a8 00 |.u0.k...|........|
|000002d0| 00 00 00 4e 1f 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|000002e0| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 83 00 0b 40 0a | 62 6f 64 79 2f 31 39 39 |......@.|body/199|
|00000300| 39 39 00 06 4d 6f 6e 61 | 63 6f 00 10 d1 4f 53 45 |99..Mona|co...OSE|
|00000310| 72 72 20 4e 65 77 44 6f | 63 75 6d 65 6e 74 28 46 |rr NewDo|cument(F|
|00000320| 69 6c 65 52 65 63 48 6e | 64 6c 20 2a 72 65 74 75 |ileRecHn|dl *retu|
|00000330| 72 6e 48 6e 64 6c 2c 20 | 4f 53 54 79 70 65 20 73 |rnHndl, |OSType s|
|00000340| 66 74 79 70 65 2c 20 42 | 6f 6f 6c 65 61 6e 20 69 |ftype, B|oolean i|
|00000350| 6e 63 54 69 74 6c 65 4e | 75 6d 29 3b 0d 0d 20 20 |ncTitleN|um);.. |
|00000360| 20 20 46 69 6c 65 3a 20 | 46 69 6c 65 32 2e 68 0d | File: |File2.h.|
|00000370| 0d 49 4e 50 55 54 3a 20 | 20 73 66 74 79 70 65 20 |.INPUT: | sftype |
|00000380| 20 20 20 20 20 20 20 20 | 20 54 68 65 20 4f 53 54 | | The OST|
|00000390| 79 70 65 20 6f 66 20 74 | 68 65 20 64 65 73 69 72 |ype of t|he desir|
|000003a0| 65 64 20 64 6f 63 75 6d | 65 6e 74 2e 0d 20 20 20 |ed docum|ent.. |
|000003b0| 20 20 20 20 20 69 6e 63 | 54 69 74 6c 65 4e 75 6d | inc|TitleNum|
|000003c0| 20 20 20 20 20 50 61 73 | 73 20 69 6e 20 74 72 75 | Pas|s in tru|
|000003d0| 65 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 68 |e if you| want th|
|000003e0| 65 20 64 6f 63 75 6d 65 | 6e 74 20 6e 75 6d 62 65 |e docume|nt numbe|
|000003f0| 72 20 77 68 69 63 68 20 | 69 73 0d 20 20 20 20 20 |r which |is. |
|00000400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000410| 20 20 20 28 6f 70 74 69 | 6f 6e 61 6c 6c 79 29 20 | (opti|onally) |
|00000420| 61 70 70 65 6e 64 65 64 | 20 74 6f 20 74 68 65 20 |appended| to the |
|00000430| 74 69 74 6c 65 20 69 6e | 63 72 65 6d 65 6e 74 65 |title in|cremente|
|00000440| 64 2e 0d 4f 55 54 50 55 | 54 3a 20 72 65 74 75 72 |d..OUTPU|T: retur|
|00000450| 6e 48 6e 64 6c 20 20 20 | 20 20 20 54 68 65 20 66 |nHndl | The f|
|00000460| 72 48 6e 64 6c 20 63 72 | 65 61 74 65 64 20 69 73 |rHndl cr|eated is|
|00000470| 20 72 65 74 75 72 6e 65 | 64 20 68 65 72 65 2e 0d | returne|d here..|
|00000480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000490| 20 20 20 20 20 20 20 20 | 4e 6f 74 65 20 74 68 61 | |Note tha|
|000004a0| 74 20 74 68 65 72 65 20 | 61 72 65 20 74 77 6f 20 |t there |are two |
|000004b0| 73 70 65 63 69 61 6c 20 | 63 61 73 65 73 20 74 68 |special |cases th|
|000004c0| 61 74 20 79 6f 75 20 63 | 61 6e 20 63 61 6c 6c 0d |at you c|an call.|
|000004d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004e0| 20 20 20 20 20 20 20 20 | 74 68 69 73 20 66 75 6e | |this fun|
|000004f0| 63 74 69 6f 6e 2e 20 20 | 54 68 65 20 70 75 72 70 |ction. |The purp|
|00000500| 6f 73 65 20 66 6f 72 20 | 62 6f 74 68 20 69 73 20 |ose for |both is |
|00000510| 74 6f 20 63 68 61 6e 67 | 65 0d 20 20 20 20 20 20 |to chang|e. |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 74 68 65 20 75 6e | 74 69 74 6c 65 64 43 6f | the un|titledCo|
|00000540| 75 6e 74 20 76 61 6c 75 | 65 2e 20 20 49 66 20 79 |unt valu|e. If y|
|00000550| 6f 75 20 70 61 73 73 20 | 69 6e 20 61 6e 20 73 66 |ou pass |in an sf|
|00000560| 74 79 70 65 20 6f 66 20 | 30 2c 0d 20 20 20 20 20 |type of |0,. |
|00000570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000580| 20 20 20 74 68 65 6e 20 | 74 68 65 20 66 72 48 6e | then |the frHn|
|00000590| 64 6c 20 76 61 6c 75 65 | 20 69 73 20 75 73 65 64 |dl value| is used|
|000005a0| 20 61 73 20 61 6e 20 69 | 6e 64 69 63 61 74 6f 72 | as an i|ndicator|
|000005b0| 20 61 73 20 74 6f 20 77 | 68 61 74 0d 20 20 20 20 | as to w|hat. |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005d0| 20 20 20 20 74 6f 20 64 | 6f 20 77 69 74 68 20 74 | to d|o with t|
|000005e0| 68 65 20 75 6e 74 69 74 | 6c 65 64 43 6f 75 6e 74 |he untit|ledCount|
|000005f0| 20 76 61 6c 75 65 2e 20 | 20 49 66 20 79 6f 75 20 | value. | If you |
|00000600| 70 61 73 73 20 69 6e 20 | 30 0d 20 20 20 20 20 20 |pass in |0. |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000620| 20 20 66 6f 72 20 74 68 | 65 20 66 72 48 6e 64 6c | for th|e frHndl|
|00000630| 20 76 61 6c 75 65 2c 20 | 75 6e 74 69 74 6c 65 64 | value, |untitled|
|00000640| 43 6f 75 6e 74 20 69 73 | 20 72 65 73 65 74 20 74 |Count is| reset t|
|00000650| 6f 20 30 2e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |o 0.. | |
|00000660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 49 66 20 | | If |
|00000670| 79 6f 75 20 70 61 73 73 | 20 69 6e 20 61 20 2d 31 |you pass| in a -1|
|00000680| 2c 20 75 6e 74 69 74 6c | 65 64 43 6f 75 6e 74 20 |, untitl|edCount |
|00000690| 69 73 20 64 65 63 72 65 | 6d 65 6e 74 65 64 2e 0d |is decre|mented..|
|000006a0| 52 45 53 55 4c 54 3a 20 | 4f 53 45 72 72 20 20 20 |RESULT: |OSErr |
|000006b0| 20 20 20 20 20 20 20 20 | 49 66 20 61 6e 20 65 72 | |If an er|
|000006c0| 72 6f 72 20 69 73 20 72 | 65 74 75 72 6e 65 64 2c |ror is r|eturned,|
|000006d0| 20 74 68 65 6e 20 74 68 | 65 72 65 20 69 73 20 6e | then th|ere is n|
|000006e0| 6f 20 72 65 74 75 72 6e | 48 6e 64 6c 2e 0d 0d 54 |o return|Hndl...T|
|000006f0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|00000700| 63 61 6c 6c 65 64 20 62 | 79 20 74 68 65 20 61 70 |called b|y the ap|
|00000710| 70 6c 69 63 61 74 69 6f | 6e 2c 20 64 69 72 65 63 |plicatio|n, direc|
|00000720| 74 6c 79 20 6f 72 20 69 | 6e 64 69 72 65 63 74 6c |tly or i|ndirectl|
|00000730| 79 2e 20 20 45 76 65 6e | 20 69 66 20 79 6f 75 0d |y. Even| if you.|
|00000740| 68 61 76 65 20 75 73 65 | 64 20 74 68 65 20 61 70 |have use|d the ap|
|00000750| 70 6c 69 63 61 74 69 6f | 6e 20 65 64 69 74 6f 72 |plicatio|n editor|
|00000760| 20 74 6f 20 73 65 74 20 | 75 70 20 41 70 70 57 61 | to set |up AppWa|
|00000770| 6e 6e 61 62 65 20 74 6f | 20 61 75 74 6f 6d 61 74 |nnabe to| automat|
|00000780| 69 63 61 6c 6c 79 20 6f | 70 65 6e 0d 64 6f 63 75 |ically o|pen.docu|
|00000790| 6d 65 6e 74 20 77 69 6e | 64 6f 77 73 20 28 66 69 |ment win|dows (fi|
|000007a0| 6c 65 2d 62 61 73 65 64 | 20 6f 72 20 6e 6f 74 29 |le-based| or not)|
|000007b0| 2c 20 74 68 69 73 20 67 | 65 74 73 20 63 61 6c 6c |, this g|ets call|
|000007c0| 65 64 2e 0d 0d 4e 65 77 | 44 6f 63 75 6d 65 6e 74 |ed...New|Document|
|000007d0| 20 66 69 72 73 74 20 63 | 61 6c 6c 73 20 74 68 65 | first c|alls the|
|000007e0| 20 41 70 70 57 61 6e 6e | 61 62 65 20 66 75 6e 63 | AppWann|abe func|
|000007f0| 74 69 6f 6e 20 49 6e 69 | 74 44 6f 63 75 6d 65 6e |tion Ini|tDocumen|
|00000800| 74 53 69 7a 65 20 74 6f | 20 61 6c 6c 6f 77 20 74 |tSize to| allow t|
|00000810| 68 65 0d 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |he.appli|cation t|
|00000820| 6f 20 64 65 63 6c 61 72 | 65 20 68 6f 77 20 6c 61 |o declar|e how la|
|00000830| 72 67 65 20 74 68 65 20 | 66 69 6c 65 20 72 65 66 |rge the |file ref|
|00000840| 65 72 65 6e 63 65 20 68 | 61 6e 64 6c 65 20 73 68 |erence h|andle sh|
|00000850| 6f 75 6c 64 20 62 65 2e | 20 20 49 74 20 74 68 65 |ould be.| It the|
|00000860| 6e 0d 63 72 65 61 74 65 | 73 20 74 68 65 20 66 72 |n.create|s the fr|
|00000870| 48 6e 64 6c 20 62 61 73 | 65 64 20 6f 6e 20 74 68 |Hndl bas|ed on th|
|00000880| 65 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 6f |e return| value o|
|00000890| 66 20 49 6e 69 74 44 6f | 63 75 6d 65 6e 74 53 69 |f InitDo|cumentSi|
|000008a0| 7a 65 0d 28 76 69 61 20 | 4e 65 77 48 61 6e 64 6c |ze.(via |NewHandl|
|000008b0| 65 43 6c 65 61 72 29 2c | 20 61 6e 64 20 74 68 65 |eClear),| and the|
|000008c0| 6e 20 69 6e 69 74 69 61 | 6c 69 7a 65 73 20 74 68 |n initia|lizes th|
|000008d0| 65 20 66 69 65 6c 64 73 | 20 74 6f 20 74 68 65 69 |e fields| to thei|
|000008e0| 72 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 73 |r defaul|t values|
|000008f0| 2e 0d 0d 4e 65 77 44 6f | 63 75 6d 65 6e 74 20 74 |...NewDo|cument t|
|00000900| 68 65 6e 20 63 61 6c 6c | 73 20 61 6e 6f 74 68 65 |hen call|s anothe|
|00000910| 72 20 41 70 70 57 61 6e | 6e 61 62 65 20 66 75 6e |r AppWan|nabe fun|
|00000920| 63 74 69 6f 6e 20 63 61 | 6c 6c 65 64 20 49 6e 69 |ction ca|lled Ini|
|00000930| 74 44 6f 63 75 6d 65 6e | 74 2e 20 20 54 68 65 0d |tDocumen|t. The.|
|00000940| 70 75 72 70 6f 73 65 20 | 6f 66 20 74 68 69 73 20 |purpose |of this |
|00000950| 41 70 70 57 61 6e 6e 61 | 62 65 20 66 75 6e 63 74 |AppWanna|be funct|
|00000960| 69 6f 6e 20 69 73 20 74 | 6f 20 63 68 61 6e 67 65 |ion is t|o change|
|00000970| 20 61 6e 79 20 6f 66 20 | 74 68 65 20 64 65 66 61 | any of |the defa|
|00000980| 75 6c 74 73 20 74 68 61 | 74 20 61 72 65 6e d5 74 |ults tha|t aren.t|
|00000990| 0d 61 70 70 72 6f 70 72 | 69 61 74 65 20 66 6f 72 |.appropr|iate for|
|000009a0| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 2e 0d 0d | the doc|ument...|
|000009b0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 74 79 |Note tha|t the ty|
|000009c0| 70 69 63 61 6c 20 77 61 | 79 20 74 6f 20 63 72 65 |pical wa|y to cre|
|000009d0| 61 74 65 20 64 6f 63 75 | 6d 65 6e 74 20 77 69 74 |ate docu|ment wit|
|000009e0| 68 20 41 70 70 73 54 6f | 47 6f 20 28 62 65 63 61 |h AppsTo|Go (beca|
|000009f0| 75 73 65 20 69 74 20 69 | 73 20 74 68 65 0d 65 61 |use it i|s the.ea|
|00000a00| 73 69 65 73 74 29 20 69 | 73 20 74 6f 20 63 72 65 |siest) i|s to cre|
|00000a10| 61 74 65 20 74 68 65 6d | 20 77 69 74 68 20 74 68 |ate them| with th|
|00000a20| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 65 64 |e applic|ation ed|
|00000a30| 69 74 6f 72 2e 20 20 4e | 65 77 44 6f 63 75 6d 65 |itor. N|ewDocume|
|00000a40| 6e 74 2c 20 66 6f 72 20 | 62 61 63 6b 77 61 72 64 |nt, for |backward|
|00000a50| 73 0d 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |s.compat|ibility |
|00000a60| 6e 6f 74 65 73 20 69 66 | 20 74 68 65 72 65 20 69 |notes if| there i|
|00000a70| 73 20 61 6e 20 41 70 70 | 73 54 6f 47 6f 20 61 70 |s an App|sToGo ap|
|00000a80| 70 6c 69 63 61 74 69 6f | 6e 20 65 64 69 74 6f 72 |plicatio|n editor|
|00000a90| 20 65 6e 74 72 79 20 66 | 6f 72 20 74 68 69 73 0d | entry f|or this.|
|00000aa0| 4f 53 54 79 70 65 2e 20 | 20 49 66 20 73 6f 2c 20 |OSType. | If so, |
|00000ab0| 74 68 65 6e 20 74 68 65 | 72 65 20 69 73 20 61 20 |then the|re is a |
|00000ac0| 6c 6f 74 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |lot more| informa|
|00000ad0| 74 69 6f 6e 20 64 69 72 | 65 63 74 6c 79 20 61 76 |tion dir|ectly av|
|00000ae0| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 74 68 69 73 |ailable |for this|
|00000af0| 0d 64 6f 63 75 6d 65 6e | 74 2e 20 20 49 66 20 74 |.documen|t. If t|
|00000b00| 68 65 20 64 6f 63 75 6d | 65 6e 74 20 62 65 69 6e |he docum|ent bein|
|00000b10| 67 20 63 72 65 61 74 65 | 64 20 77 61 73 20 64 65 |g create|d was de|
|00000b20| 73 63 72 69 62 65 64 20 | 77 69 74 68 20 74 68 65 |scribed |with the|
|00000b30| 20 65 64 69 74 6f 72 2c | 20 74 68 65 6e 20 72 65 | editor,| then re|
|00000b40| 61 64 0d 70 61 72 74 20 | 31 20 62 65 6c 6f 77 2e |ad.part |1 below.|
|00000b50| 20 20 49 66 20 79 6f 75 | 20 61 72 65 20 63 61 6c | If you| are cal|
|00000b60| 6c 69 6e 67 20 4e 65 77 | 44 6f 63 75 6d 65 6e 74 |ling New|Document|
|00000b70| 20 64 69 72 65 63 74 6c | 79 20 77 69 74 68 6f 75 | directl|y withou|
|00000b80| 74 20 68 61 76 69 6e 67 | 20 64 65 73 63 72 69 62 |t having| describ|
|00000b90| 65 64 0d 74 68 69 73 20 | 4f 53 54 79 70 65 20 77 |ed.this |OSType w|
|00000ba0| 69 74 68 20 74 68 65 20 | 41 70 70 73 54 6f 47 6f |ith the |AppsToGo|
|00000bb0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 65 64 69 | applica|tion edi|
|00000bc0| 74 6f 72 2c 20 74 68 65 | 6e 20 72 65 61 64 20 70 |tor, the|n read p|
|00000bd0| 61 72 74 20 32 20 62 65 | 6c 6f 77 2e 0d 28 54 68 |art 2 be|low..(Th|
|00000be0| 65 20 70 61 72 74 20 32 | 20 74 65 63 68 6e 69 71 |e part 2| techniq|
|00000bf0| 75 65 20 69 73 20 72 65 | 61 6c 6c 79 20 6f 6e 6c |ue is re|ally onl|
|00000c00| 79 20 66 6f 72 20 62 61 | 63 6b 77 61 72 64 73 20 |y for ba|ckwards |
|00000c10| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 2e 29 0d |compatib|ility.).|
|00000c20| 0d 50 41 52 54 20 31 3a | 20 54 68 65 20 64 6f 63 |.PART 1:| The doc|
|00000c30| 75 6d 65 6e 74 20 74 69 | 74 6c 65 20 69 73 20 65 |ument ti|tle is e|
|00000c40| 6e 74 65 72 65 64 20 69 | 6e 20 74 68 65 20 41 70 |ntered i|n the Ap|
|00000c50| 70 73 54 6f 47 6f 20 65 | 64 69 74 6f 72 2e 20 20 |psToGo e|ditor. |
|00000c60| 49 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 0d 20 |If there| is no. |
|00000c70| 20 20 20 20 20 20 20 74 | 69 74 6c 65 20 65 6e 74 | t|itle ent|
|00000c80| 65 72 65 64 20 74 68 65 | 72 65 2c 20 6f 72 20 69 |ered the|re, or i|
|00000c90| 66 20 74 68 65 20 74 69 | 74 6c 65 20 73 74 61 72 |f the ti|tle star|
|00000ca0| 74 73 20 77 69 74 68 20 | 61 20 73 70 61 63 65 2c |ts with |a space,|
|00000cb0| 20 74 68 65 6e 20 6e 6f | 20 64 65 66 61 75 6c 74 | then no| default|
|00000cc0| 0d 20 20 20 20 20 20 20 | 20 74 69 74 6c 65 20 69 |. | title i|
|00000cd0| 73 20 70 6c 61 63 65 64 | 20 69 6e 20 74 68 65 20 |s placed| in the |
|00000ce0| 64 6f 63 75 6d 65 6e 74 | 20 72 65 66 65 72 65 6e |document| referen|
|00000cf0| 63 65 2e 20 20 28 57 68 | 65 6e 20 61 20 77 69 6e |ce. (Wh|en a win|
|00000d00| 64 6f 77 20 69 73 20 63 | 72 65 61 74 65 64 2c 20 |dow is c|reated, |
|00000d10| 69 66 0d 20 20 20 20 20 | 20 20 20 74 68 65 72 65 |if. | there|
|00000d20| 20 69 73 20 6e 6f 20 64 | 6f 63 75 6d 65 6e 74 20 | is no d|ocument |
|00000d30| 6e 61 6d 65 2c 20 74 68 | 65 6e 20 74 68 65 20 27 |name, th|en the '|
|00000d40| 57 49 4e 44 27 20 72 65 | 73 6f 75 72 63 65 20 74 |WIND' re|source t|
|00000d50| 69 74 6c 65 20 69 73 20 | 75 73 65 64 20 61 73 2d |itle is |used as-|
|00000d60| 69 73 0d 20 20 20 20 20 | 20 20 20 69 6e 73 74 65 |is. | inste|
|00000d70| 61 64 2e 29 0d 0d 20 20 | 20 20 20 20 20 20 49 66 |ad.).. | If|
|00000d80| 20 74 72 75 65 20 69 73 | 20 70 61 73 73 65 64 20 | true is| passed |
|00000d90| 69 6e 20 66 6f 72 20 69 | 6e 63 54 69 74 6c 65 4e |in for i|ncTitleN|
|00000da0| 75 6d 2c 20 74 68 65 6e | 20 69 66 20 61 20 76 61 |um, then| if a va|
|00000db0| 6c 69 64 20 74 69 74 6c | 65 20 77 61 73 20 65 6e |lid titl|e was en|
|00000dc0| 74 65 72 65 64 20 69 6e | 0d 20 20 20 20 20 20 20 |tered in|. |
|00000dd0| 20 74 68 65 20 41 70 70 | 73 54 6f 47 6f 20 65 64 | the App|sToGo ed|
|00000de0| 69 74 6f 72 2c 20 74 68 | 65 6e 20 75 6e 74 69 74 |itor, th|en untit|
|00000df0| 6c 65 64 43 6f 75 6e 74 | 20 69 73 20 69 6e 63 72 |ledCount| is incr|
|00000e00| 65 6d 65 6e 74 65 64 2c | 20 61 6e 64 20 74 68 65 |emented,| and the|
|00000e10| 6e 20 61 70 70 65 6e 64 | 65 64 0d 20 20 20 20 20 |n append|ed. |
|00000e20| 20 20 20 74 6f 20 74 68 | 65 20 74 69 74 6c 65 2e | to th|e title.|
|00000e30| 0d 0d 50 41 52 54 20 32 | 3a 20 4e 65 77 20 64 6f |..PART 2|: New do|
|00000e40| 63 75 6d 65 6e 74 73 20 | 77 69 6c 6c 20 62 65 20 |cuments |will be |
|00000e50| 63 72 65 61 74 65 64 20 | 77 69 74 68 20 61 20 64 |created |with a d|
|00000e60| 65 66 61 75 6c 74 20 74 | 69 74 6c 65 2e 20 20 54 |efault t|itle. T|
|00000e70| 68 69 73 20 74 69 74 6c | 65 20 69 73 20 63 72 65 |his titl|e is cre|
|00000e80| 61 74 65 64 0d 20 20 20 | 20 20 20 20 20 62 79 20 |ated. | by |
|00000e90| 61 70 70 65 6e 64 69 6e | 67 20 61 20 6e 75 6d 62 |appendin|g a numb|
|00000ea0| 65 72 20 74 6f 20 74 68 | 65 20 63 6f 72 72 65 73 |er to th|e corres|
|00000eb0| 70 6f 6e 64 69 6e 67 20 | 53 54 52 23 20 69 6e 64 |ponding |STR# ind|
|00000ec0| 69 76 69 64 75 61 6c 20 | 73 74 72 69 6e 67 2e 20 |ividual |string. |
|00000ed0| 20 54 68 65 0d 20 20 20 | 20 20 20 20 20 53 54 52 | The. | STR|
|00000ee0| 23 20 72 65 73 6f 75 72 | 63 65 20 49 44 20 23 32 |# resour|ce ID #2|
|00000ef0| 35 39 20 68 6f 6c 64 73 | 20 74 68 65 20 64 65 66 |59 holds| the def|
|00000f00| 61 75 6c 74 20 74 65 78 | 74 20 66 6f 72 20 74 68 |ault tex|t for th|
|00000f10| 65 20 77 69 6e 64 6f 77 | 20 74 69 74 6c 65 73 2e |e window| titles.|
|00000f20| 20 20 57 68 69 63 68 0d | 20 20 20 20 20 20 20 20 | Which.| |
|00000f30| 73 74 72 69 6e 67 20 6e | 75 6d 62 65 72 20 69 73 |string n|umber is|
|00000f40| 20 64 65 74 65 72 6d 69 | 6e 65 64 20 62 79 20 74 | determi|ned by t|
|00000f50| 68 65 20 4f 53 54 79 70 | 65 20 61 72 72 61 79 20 |he OSTyp|e array |
|00000f60| 67 54 79 70 65 4c 69 73 | 74 2e 20 20 67 54 79 70 |gTypeLis|t. gTyp|
|00000f70| 65 4c 69 73 74 0d 20 20 | 20 20 20 20 20 20 63 6f |eList. | co|
|00000f80| 6e 74 61 69 6e 73 20 61 | 6c 6c 20 6f 66 20 74 68 |ntains a|ll of th|
|00000f90| 65 20 66 69 6c 65 20 74 | 79 70 65 73 20 74 68 61 |e file t|ypes tha|
|00000fa0| 74 20 63 61 6e 20 62 65 | 20 6f 70 65 6e 65 64 20 |t can be| opened |
|00000fb0| 62 79 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |by the a|pplicati|
|00000fc0| 6f 6e 2e 20 20 54 68 65 | 0d 20 20 20 20 20 20 20 |on. The|. |
|00000fd0| 20 6c 69 73 74 20 69 73 | 20 77 61 6c 6b 65 64 2c | list is| walked,|
|00000fe0| 20 61 6e 64 20 74 68 65 | 20 6c 6f 63 61 74 69 6f | and the| locatio|
|00000ff0| 6e 20 69 6e 20 74 68 65 | 20 67 54 79 70 65 4c 69 |n in the| gTypeLi|
|00001000| 73 74 20 61 72 72 61 79 | 20 74 68 61 74 20 68 6f |st array| that ho|
|00001010| 6c 64 73 20 74 68 65 0d | 20 20 20 20 20 20 20 20 |lds the.| |
|00001020| 63 6f 72 72 65 63 74 20 | 66 69 6c 65 20 74 79 70 |correct |file typ|
|00001030| 65 20 69 73 20 75 73 65 | 64 20 61 73 20 61 6e 20 |e is use|d as an |
|00001040| 69 6e 64 65 78 20 69 6e | 74 6f 20 74 68 65 20 53 |index in|to the S|
|00001050| 54 52 23 20 72 65 73 6f | 75 72 63 65 2e 20 20 49 |TR# reso|urce. I|
|00001060| 66 20 74 68 65 20 66 69 | 6c 65 0d 20 20 20 20 20 |f the fi|le. |
|00001070| 20 20 20 74 79 70 65 20 | 69 73 6e d5 74 20 66 6f | type |isn.t fo|
|00001080| 75 6e 64 20 69 6e 20 74 | 68 65 20 6c 69 73 74 2c |und in t|he list,|
|00001090| 20 74 68 65 6e 20 74 68 | 65 20 66 69 72 73 74 20 | then th|e first |
|000010a0| 73 74 72 69 6e 67 20 69 | 6e 20 74 68 65 20 53 54 |string i|n the ST|
|000010b0| 52 23 20 72 65 73 6f 75 | 72 63 65 0d 20 20 20 20 |R# resou|rce. |
|000010c0| 20 20 20 20 69 73 20 75 | 73 65 64 2e 0d 0d 20 20 | is u|sed... |
|000010d0| 20 20 20 20 20 20 54 68 | 65 20 6e 65 78 74 20 67 | Th|e next g|
|000010e0| 72 65 61 74 65 73 74 20 | 69 6e 74 65 67 65 72 20 |reatest |integer |
|000010f0| 69 73 20 61 70 70 65 6e | 64 65 64 20 74 6f 20 74 |is appen|ded to t|
|00001100| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 69 6e |he end o|f the in|
|00001110| 64 69 76 69 64 75 61 6c | 20 73 74 72 69 6e 67 0d |dividual| string.|
|00001120| 20 20 20 20 20 20 20 20 | 73 65 6c 65 63 74 65 64 | |selected|
|00001130| 20 66 6f 72 20 74 68 65 | 20 64 6f 63 75 6d 65 6e | for the| documen|
|00001140| 74 2e 20 20 49 66 20 69 | 6e 63 54 69 74 6c 65 4e |t. If i|ncTitleN|
|00001150| 75 6d 20 69 73 20 74 72 | 75 65 2c 20 74 68 65 6e |um is tr|ue, then|
|00001160| 20 74 68 65 20 67 6c 6f | 62 61 6c 0d 20 20 20 20 | the glo|bal. |
|00001170| 20 20 20 20 69 6e 74 65 | 67 65 72 20 69 73 20 66 | inte|ger is f|
|00001180| 69 72 73 74 20 69 6e 63 | 72 65 6d 65 6e 74 65 64 |irst inc|remented|
|00001190| 20 70 72 69 6f 72 20 74 | 6f 20 61 70 70 65 6e 64 | prior t|o append|
|000011a0| 69 6e 67 20 74 68 65 20 | 6e 75 6d 62 65 72 2e 0d |ing the |number..|
|000011b0| 0d 20 20 20 20 20 20 20 | 20 49 66 20 79 6f 75 20 |. | If you |
|000011c0| 77 61 6e 74 20 74 6f 20 | 63 72 65 61 74 65 20 61 |want to |create a|
|000011d0| 20 64 6f 63 75 6d 65 6e | 74 20 77 69 74 68 20 74 | documen|t with t|
|000011e0| 68 65 20 74 69 74 6c 65 | 20 66 6f 75 6e 64 20 69 |he title| found i|
|000011f0| 6e 20 74 68 65 20 27 57 | 49 4e 44 27 0d 20 20 20 |n the 'W|IND'. |
|00001200| 20 20 20 20 20 72 65 73 | 6f 75 72 63 65 2c 20 66 | res|ource, f|
|00001210| 69 72 73 74 20 63 61 6c | 6c 20 4e 65 77 44 6f 63 |irst cal|l NewDoc|
|00001220| 75 6d 65 6e 74 2e 20 20 | 41 66 74 65 72 20 79 6f |ument. |After yo|
|00001230| 75 20 68 61 76 65 20 74 | 68 65 20 66 72 48 6e 64 |u have t|he frHnd|
|00001240| 6c 20 66 6f 72 20 74 68 | 65 0d 20 20 20 20 20 20 |l for th|e. |
|00001250| 20 20 64 6f 63 75 6d 65 | 6e 74 2c 20 73 65 74 20 | docume|nt, set |
|00001260| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 20 69 6e |the file| name in|
|00001270| 20 74 68 65 20 28 2a 66 | 72 48 6e 64 6c 29 2d 3e | the (*f|rHndl)->|
|00001280| 66 69 6c 65 53 74 61 74 | 65 2e 66 73 73 2e 6e 61 |fileStat|e.fss.na|
|00001290| 6d 65 20 66 69 65 6c 64 | 20 74 6f 0d 20 20 20 20 |me field| to. |
|000012a0| 20 20 20 20 61 6e 20 65 | 6d 70 74 79 20 73 74 72 | an e|mpty str|
|000012b0| 69 6e 67 2e 20 20 57 68 | 65 6e 20 74 68 65 20 77 |ing. Wh|en the w|
|000012c0| 69 6e 64 6f 77 20 69 73 | 20 6f 70 65 6e 65 64 20 |indow is| opened |
|000012d0| 66 6f 72 20 74 68 69 73 | 20 64 6f 63 75 6d 65 6e |for this| documen|
|000012e0| 74 2c 20 69 66 20 74 68 | 69 73 0d 20 20 20 20 20 |t, if th|is. |
|000012f0| 20 20 20 6e 61 6d 65 20 | 69 73 20 61 6e 20 65 6d | name |is an em|
|00001300| 70 74 79 20 73 74 72 69 | 6e 67 2c 20 69 74 20 74 |pty stri|ng, it t|
|00001310| 69 74 6c 65 73 20 74 68 | 65 20 77 69 6e 64 6f 77 |itles th|e window|
|00001320| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 77 68 | accordi|ng to wh|
|00001330| 61 74 20 69 73 20 66 6f | 75 6e 64 0d 20 20 20 20 |at is fo|und. |
|00001340| 20 20 20 20 69 6e 20 74 | 68 65 20 27 57 49 4e 44 | in t|he 'WIND|
|00001350| 27 20 72 65 73 6f 75 72 | 63 65 20 66 6f 72 20 74 |' resour|ce for t|
|00001360| 68 61 74 20 77 69 6e 64 | 6f 77 2e 20 20 49 66 20 |hat wind|ow. If |
|00001370| 74 68 69 73 20 66 69 65 | 6c 64 20 69 73 20 6e 6f |this fie|ld is no|
|00001380| 74 20 61 6e 20 65 6d 70 | 74 79 0d 20 20 20 20 20 |t an emp|ty. |
|00001390| 20 20 20 73 74 72 69 6e | 67 2c 20 74 68 65 6e 20 | strin|g, then |
|000013a0| 74 68 65 20 27 57 49 4e | 44 27 20 74 69 74 6c 65 |the 'WIN|D' title|
|000013b0| 20 69 73 20 6f 76 65 72 | 72 69 64 64 65 6e 2c 20 | is over|ridden, |
|000013c0| 61 6e 64 20 74 68 65 20 | 66 69 6c 65 20 6e 61 6d |and the |file nam|
|000013d0| 65 20 69 73 20 75 73 65 | 64 2e 20 0d 0d 0d 00 8e |e is use|d. .....|
|000013e0| 00 07 00 00 00 00 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 04 e8 00 0b 00 09 00 04 |........|........|
|00001400| 05 00 00 09 00 00 00 00 | 00 00 00 00 04 f8 00 0b |........|........|
|00001410| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 05 85 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |........|........|
|00001430| 00 00 00 00 05 95 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 06 20 00 0b 00 09 00 04 |........|. ......|
|00001450| 05 00 00 09 00 00 00 00 | 00 00 00 00 06 2c 00 0b |........|.....,..|
|00001460| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 |........|...... |
+--------+-------------------------+-------------------------+--------+--------+